package 康复训练_JavaGo并驾齐驱;

import 二叉树.TreeNode;

public class Jz27二叉树的镜像 {

    public TreeNode mirrorTree(TreeNode root) {
        if (root == null) {
            return null;
        }
        TreeNode temp = root.left;
        root.left = this.mirrorTree(root.right);
        root.right = this.mirrorTree(temp);
        return root;
    }

}
